const { query } = require("./db");

(async () => {
    let result = await query("select * from users", []);
    // console.log(result);
})()

query("select * from users where user_name=?", ["cheng"])
    .then(res => {
        console.log(res);
    }).catch(err => {
        console.log(err);
    })